package com.example.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;


/**
 * <p>
 * 
 * </p>
 *
 * @author 陈昌吉
 * @since 2024-04-16
 */
//@Data
//@EqualsAndHashCode(callSuper = false)
//@Accessors(chain = true)
//@TableName("login")
//@ApiModel(value="Login对象", description="")

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Login implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "登录表 login的id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @NonNull
    @ApiModelProperty(value = "学生学号")
    private String sno;

    @ApiModelProperty(value = "密码（默认为123456）")
    private String password;

    @ApiModelProperty(value = "0（老师）,1（助教）,2（学生）")
    private String role;

    @NonNull
    @ApiModelProperty(value = "学生姓名")
    private String name;


    @ApiModelProperty(value = "出生日期")
    @DateTimeFormat
    private LocalDateTime birthdate;

    @ApiModelProperty(value = "学生班级")
    private String sclass;

    @ApiModelProperty(value = "身份")
    private String position;
//
    @ApiModelProperty(value = "学号")
    private Integer pageIndex;

    @ApiModelProperty(value = "学号")
    private Integer pageSize;

}
